<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
  <meta content=always name=referrer>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>属性选择</title>
  <script src="__STATIC__/js/jquery-1.11.3.min.js"></script>

  <style>
    *{
      margin: 0;
      padding: 0;
    }
    ul{
      list-style-type: none;
    }
    .left{
      float: left;
    }
    .wrap-attr{
      width: 990px;
    }
    .wrap-attr .head{
      overflow: hidden;
      padding: 10px 20px;
    }
    .wrap-attr .head .con{
      overflow: hidden;
    }
    .wrap-attr  .goods{
      width:60px;
      height: 60px;
      border:1px solid #EEEEEE;
    }
    .wrap-attr .head .con span{
      font-size: 24px;
      line-height: 62px;
      display: block;
      margin: 0 10px;
    }
    .wrap-attr .head .total{
      margin-left: 10px;
    }
    .wrap-attr .head .total .price{
      font-size: 12px;
      color: #E03025;
      line-height: 20px;
    }
    .wrap-attr .head .total .price .num{
      font-size: 14px;
    }
    .wrap-attr .head .total .price .save{
      font-size: 12px;
      line-height: 20px;
      color: white;
      background: #363636;
      padding: 0 5px;
      display: inline-block;
      margin-left: 10px;
    }
    .wrap-attr .head .total .ori{
      font-size: 14px;
      line-height: 20px;
    }
    .wrap-attr .head .total .ori span{
      text-decoration: line-through;
    }
    .wrap-attr .info_con{
      background: #F5F5F5;
    }
    .wrap-attr .info_con .title{
      font-size: 14px;
      line-height: 20px;
      padding: 15px 20px;
    }
    .wrap-attr .info_con .title img{
      width: 14px;
      height: 14px;
      margin-top: 3px;
      margin-right: 5px;
      float: left;
    }
    .wrap-attr .info_con .main_info{
      overflow: hidden;
      min-height: 360px;
    }
    .wrap-attr .info_con .main_info .info{
      width: 435px;
      margin: 0 20px;
      background: white;
      padding: 10px;
    }
    .wrap-attr .details{
      margin-left: 10px;
      width:360px;

    }
    .wrap-attr .details .color{
      overflow: hidden;
      margin-top: 15px;
    }
    .wrap-attr .details .color:first-child{
      margin-top: 0;
    }
    .wrap-attr .details .color span{
      font-size: 12px;
      line-height: 24px;
    }
    .wrap-attr .details  .det{
      color: #333333;
    }
    .wrap-attr .details  .det .list{
      overflow: hidden;
      margin-left: 20px;
    }
    .wrap-attr .details  .det ul li{
      float: left;
      margin: 0 5px;
      padding: 0 10px;
      font-size: 12px;
      line-height: 24px;
      border:1px solid #DADADA;
    }
    .wrap-attr .details  .det ul .act{
      border:1px solid #E03025!important;
      background: url("__STATIC__/image/icon1.png") no-repeat right bottom;
    }
    .wrap-attr .details  .det ul .none{
      border:1px dashed #DADADA;
    }
    .wrap-attr .foot{
      background: black;
      padding: 10px 20px;
      text-align: right;
      color: white;
      font-size: 12px;
      line-height: 40px;
    }
    .wrap-attr .foot>span{
      color: #E03025;
    }
    .wrap-attr .foot>span span{
      font-size: 14px;
      color: #E03025;
    }
    .wrap-attr input[type='text']{
      font-size: 14px;
      line-height: 22px;
      border:1px solid #ddd;
      background: white;
      outline: none;
      width: 40px;
      text-align: center;
      margin:  0 5px;
      color: #333;

    }
    .wrap-attr input[type='submit']{
      font-size: 18px;
      background: #E03025;
      color: white;
      border:none;
      outline: none;
      width: 114px;
      line-height: 40px;
      text-align: center;
    }
  </style>
</head>
<body>
<div class="wrap-attr">
  <div class="head">
    <div class="con left">
      {if condition="$data.shopGoodsComboSelected"}
      {volist name="data.shopGoodsComboSelected" id='item'}
      <img src="/{$item.shopGoods.thumb_img}" class="goods left">
      <span class="left">+</span>
      {/volist}
      {/if}
    </div>
    <div class="left total">
      <div class="price">套餐价：<span class="num">￥{$data.combo_price}</span><span class="save">省￥{$data.total-$data.combo_price}</span></div>
      <div class="ori">价格：<span>￥{$data.total}</span></div>
    </div>

  </div>
  <div class="info_con">
    <div class="title"><img src="__STATIC__/image/icon.png">请选择套餐内的商品信息</div>
    <div class="main_info">

      {if condition="$data.shopGoodsComboSelected"}
      {volist name="data.shopGoodsComboSelected" id='item'}
      <div class="info left">
        <img src="/{$item.shopGoods.thumb_img}" class="left goods">
        <div class="details left">
          <div class="color">
            <span class="left">尺&emsp;&emsp;码：</span>
            <div class="det left">
              <ul class="list">
                <li class="act">38</li>
                <li>39</li>
                <li class="none">40</li>
                <li>41</li>
                <li>42</li>
                <li>43</li>

              </ul>
            </div>
          </div>
          <div class="color" style="margin-top: 25px;">
            <span class="left">库&emsp;&emsp;存：</span>
            <div class="det left"><span>1868件</span></div>
          </div>
        </div>
      </div>
      {/volist}
      {/if}

    </div>
  </div>
  <div class="foot">
    购买<input type="text" placeholder="1">套 合计<span>￥<span>147.00</span></span>
    <input type="submit" value="立即购买">
  </div>

</div>
<script>
  $(function () {
    $(".wrap-attr .details  .det ul li").click(
        function(){
          $(this).addClass("act").siblings().removeClass("act");
        }
    )
  })
</script>
</body>
</html>